package cxl.attendance;

import java.util.Scanner;

public class Check {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入位于桌面的记事本文件名：");
        String fileName = sc.nextLine();
        if (!fileName.contains(".")) {
            fileName = fileName + ".txt";
        }
        System.out.println("请输入要查询的名字：");
        String name = sc.nextLine();

        try {
            Util util = new Util(fileName);
            util.execute(name);
        } catch (Exception e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        System.out.println("按回车结束");
        sc.nextLine();
    }

}
